package com.huibei.wateradmin.authority.repository;

import com.huibei.wateradmin.authority.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by wanglinlin on 2016/7/15.
 */
public interface UserRepository extends JpaRepository<User,Long> {
    User findByEmail(String email);

    User findByEmailAndPassword(String email, String password);
}
